import request from '@/utils/request'

// 查询文件上传信息列表
export function listUploadInfo(query) {
  return request({
    url: '/carbonEmission/uploadInfo/list',
    method: 'get',
    params: query
  })
}

// 查询文件上传信息列表(分页)
export function pageUploadInfo(query) {
  return request({
    url: '/carbonEmission/uploadInfo/page',
    method: 'get',
    params: query
  })
}

// 查询文件上传信息详细
export function getUploadInfo(id) {
  return request({
    url: '/carbonEmission/uploadInfo/get/' + id,
    method: 'get'
  })
}

// 新增文件上传信息
export function addUploadInfo(data) {
  return request({
    url: '/carbonEmission/uploadInfo/add',
    method: 'post',
    data: data
  })
}

// 修改文件上传信息
export function updateUploadInfo(data) {
  return request({
    url: '/carbonEmission/uploadInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除文件上传信息
export function delUploadInfo(id) {
  return request({
    url: '/carbonEmission/uploadInfo/remove/' + id,
    method: 'post'
  })
}
